package com.test.webdemo.entity;

import lombok.Data;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

@Data
public class User implements Serializable {

    public User() {
        System.out.println("生命周期构造函数");
    }

    private String id;
    private String username;
    private String password;
    private String email;
    private String role;
    @Column(name = "is_active")
    private String isActive;
    @Column(name = "create_time")
    private Date createTime;
    @Column(name = "update_time")
    private Date updateTime;

}
